import request from "@/utils/request"

// 自定义费用导入模板下载
export const downloadTemplate = (params) =>
  request({
    url: "/expense/custom/download-template",
    method: "get",
    params,
  })

// 自定义费用审核
export const reviewExpenseCustom = (data) =>
  request({
    url: "/expense/custom/review",
    method: "post",
    data,
  })

// 自定义费用列表
export const expenseCustom = (data) =>
  request({
    url: "/expense/custom/index",
    method: "post",
    data,
  })

// 自定义费用导入
export const expenseCustomImport = (data) =>
  request({
    url: "/expense/custom/import",
    method: "post",
    data,
  })
// 获取弹框导入模板
export const downloadFrameTemplate = (params) =>
  request({
    url: "/expense/custom-expense/download-frame-template",
    method: "get",
    params,
  })
// 费用弹框费用项
export const expenseItem = (params) =>
  request({
    url: "/expense/custom-expense/expense-item",
    method: "get",
    params,
  })
// 费用弹框导入
export const expenseImport = (data) =>
  request({
    url: "/expense/custom-expense/expense-import",
    method: "post",
    data,
  })
// 费用弹框导入详情
export const expenseImportDetail = (id) =>
  request({
    url: `/expense/custom-expense/expense-import-detail/${id}`,
    method: "get",
    // params,
  })
